#include <func.h>

int main(int argc,char *argv[])
{
    int fd =open(argv[1],O_RDONLY);
    char buf[1000];
    ssize_t sret=read(fd,buf,sizeof(buf));
    ERROR_CHECK(sret,-1,"read");
    printf("%ld",sret);
    close(fd);
//    printf("得到的结果是：%s",buf);

    return 0;
}

